﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GiaoDien_Admin2.Master" AutoEventWireup="true" CodeBehind="Them_User.aspx.cs" Inherits="BT_web__nhom06.Them_User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <div class="title" style="text-align:center"> Thêm Tài Khoản</div>
     <div class="section_box" >
         <table style="margin:auto; width: 477px;" >
            <tr>
                <td style="width: 57px">UserName</td>
                <td style="margin-left: 40px; width: 188px;">
                    <asp:TextBox ID="txtusername" runat="server" OnTextChanged="txtusername_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtusername" ErrorMessage="Chưa nhập username" Font-Size="Small"></asp:RequiredFieldValidator>
                </td>
            </tr> 
            <tr>
                <td style="width: 57px">Password</td>
                <td style="margin-left: 40px; width: 188px;">
                    <asp:TextBox ID="txtpassword" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtpassword" ErrorMessage="Chưa nhập password"></asp:RequiredFieldValidator>
                </td>
            </tr> 
              <tr>
                <td style="width: 57px">Nhập lại Password</td>
                <td style="margin-left: 40px; width: 188px;">
                    
                    <asp:TextBox ID="txtnhaplaipass" runat="server"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpassword" ControlToValidate="txtnhaplaipass" ErrorMessage="Mật khẩu chưa đúng"></asp:CompareValidator>
                    
                </td>
            </tr> 
            <tr>
                <td style="width: 57px">Mã SV</td>
                <td style="margin-left: 40px; width: 188px;">
                    <asp:TextBox ID="txtmasv" runat="server" Height="17px"></asp:TextBox>
                </td>
            </tr> 
            <tr>
                <td style="width: 57px">Bị Khóa</td>
                <td style="margin-left: 40px; width: 188px;">
                    
                    <asp:CheckBox ID="ckbkhoa" runat="server" Text="Khóa" />
                    
                </td>
            </tr> 
            <tr>
                <td style="width: 57px">Quyền</td>
                <td style="margin-left: 40px; width: 188px;">
                    
                    <asp:DropDownList ID="dlstquyen" runat="server">
                        <asp:ListItem Value="DV">Đoàn Viên</asp:ListItem>
                        <asp:ListItem Value="BTCD">Bí Thư Chi đoàn</asp:ListItem>
                        <asp:ListItem Value="NVVPD">Nhân Viên VPĐ</asp:ListItem>
                        <asp:ListItem Value="AD">Admin</asp:ListItem>
                    </asp:DropDownList>
                    
                </td>
            </tr> 
            <tr>
                <td style="width: 57px">
                    &nbsp;</td>
                <td style="margin-left: 40px; width: 188px;">
                    <asp:Button ID="Button1" runat="server" Text="Thêm" OnClick="Button1_Click" />
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Đã tồn tại user" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                    &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="#CC0000"></asp:Label>
                </td>
            </tr> 
             </table>
</div>
</asp:Content>
